package com.soft.javase.day02.practice.thiss;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/16
 */
public class Test {
    public static void main(String[] args) {
        Person man1 = new Person("张三", 25, true);  // 成年男性
        Person man2 = new Person("李四", 23, true); // 未成年男性
        Person woman1 = new Person("王静1", 22, false); // 成年女性
        Person woman2 = new Person("李红", 21, false); // 未成年女性

        man1.marry(woman1);

        man2.marry(woman2);

    }
}
